package com.lj.job.enums;

import cn.hutool.core.map.MapUtil;
import com.lj.common.enums.EnumDict;
import com.lj.common.enums.ICommonEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Map;

/**
 * @author luojing
 * @since 2025/3/20 14:58
 * 定时任务的状态
 */
@AllArgsConstructor
@Getter
@EnumDict(name = "ScheduleJobStatus")
public enum ScheduleJobStatus implements ICommonEnum<Integer> {

    NORMAL(0, "正常", MapUtil.<String, Object>builder()
            .put("tagType", "success")
            .build()),
    PAUSE(1, "暂停", MapUtil.<String, Object>builder()
            .put("tagType", "info")
            .build());

    private final Integer value;

    private final String desc;

    private final Map<String, Object> extend;

}
